package com.dayuanit.dy15.atm.controller;

import com.dayuanit.dy15.atm.entity.AtmUserDetail;
import com.dayuanit.dy15.atm.service.AtmUserDetailService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (AtmUserDetail)表控制层
 *
 * @author makejava
 * @since 2020-05-23 11:48:33
 */
@RestController
@RequestMapping("atmUserDetail")
public class AtmUserDetailController {
    /**
     * 服务对象
     */
    @Resource
    private AtmUserDetailService atmUserDetailService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public AtmUserDetail selectOne(Long id) {
        return this.atmUserDetailService.queryById(id);
    }

}